* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

header,
footer,
section,
article,
aside,
nav,
hgroup,
address,
figure,
figcaption,
menu,
details {
  display: block;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

b,
caption,
th {
  text-align: left;
  font-weight: normal;
}

html,
body,
fieldset,
img,
iframe,
abbr {
  border: 0;
}

i,
cite,
em,
var,
address,
dfn {
  font-style: normal;
}

[hidefocus],
summary {
  outline: 0;
}

li {
  list-style: none;
}

pre,
code,
kbd,
samp {
  font-family: inherit;
}

q:before,
q:after {
  content: none;
}

textarea {
  overflow: auto;
  resize: none;
}

label,
summary {
  cursor: default;
}

a,
button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6,
em,
strong,
b {
  font-weight: normal;
}

del,
ins,
u,
s,
a,
a:hover {
  text-decoration: none;
}

body,
textarea,
input,
button,
select,
keygen,
legend {
  font: 14px/1.5 \5fae\8f6f\96c5\9ed1, \5b8b\4f53, arial;
  outline: 0;
}

input {
  min-width: 0;
}

button:active {
  outline: none;
}

// 高分辨率设备缩放为一个像素
@media (-webkit-min-device-pixel-ratio:1.5), (min-device-pixel-ratio:1.5) {
  .border-horizon {
    &::before, &::after {
      transform: scaleY(0.7);
    }
  }
  .border-vertical {
    &::before, &::after {
      transform: scaleX(0.7);
    }
  }
  .border-all {
    &::before {
      width: 142.857%;
      height: 142.857%;
      transform: scale(0.7, 0.7);
    }
  }
}

@media (-webkit-min-device-pixel-ratio:2), (min-device-pixel-ratio:2) {
  .border-horizon {
    &::before, &::after {
      transform: scaleY(0.5);
    }
  }
  .border-vertical {
    &::before, &::after {
      transform: scaleX(0.5);
    }
  }
  .border-all {
    &::before {
      width: 200%;
      height: 200%;
      transform: scale(0.5, 0.5);
    }
  }
}

@media (-webkit-min-device-pixel-ratio:2.5), (min-device-pixel-ratio:2.5) {
  .border-horizon {
    &::before, &::after {
      transform: scaleY(0.33333334);
    }
  }
  .border-vertical {
    &::before, &::after {
      transform: scaleX(0.33333334);
    }
  }
  .border-all {
    &::before {
      width: 300%;
      height: 300%;
      transform: scale(0.33333334, 0.33333334);
    }
  }
}
